Imported from https://github.com/if1015-datascience-ufpe/2018-2-ex3-displend