Changed the type of attributes to Float rather than Integer