Fixed code to not use any external libraries. Only uses what is
available in Prelude