Implemented F part of lab3b