first practice problem

additional info located in comments