Program coded for my final exam yesterday