Activity 2

Edited code to do functions specified in activity 2.