First version of PA1

Solutions for answers to first three tasks.