Licence added. Bean class corrected