Added basic implementation of 5th lab.