Finished task 3

Also added some strings and unsupportedexceptions to resolve errors and
make it runnable.