Code for Task 1 of AppDev.