Added my implementation

Did all my work in this one file as per course instructions.