adding functions and images for assignment 1