Finished first problem

Finished dog problem for the expressions assignment.