Assignment task from bitfountains iOS course.