cleaned up code in learn fragment. First step to interchanging fragments for homework