adding week2 assignment base classes
solution for week 2