Implement functions according to the facts

This pull request solves the training day facts by implementing the missing functionality.